#!/bin/bash

# fail if any commands fails
set -e
# debug log
#set -x

doas rfkill unblock wifi
#doas ip link set wlan0 up
connmanctl scan wifi && wait $!
connmanctl services && wait $!
connmanctl connect wifi_085bd658a075_54656c6563656e74726f2d39303361_managed_psk
